package com.example.hello_app.controller;

import com.example.hello_app.model.AppResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "Hello模块")
public class HelloController {

    @GetMapping("/hello")
    @Operation(summary = "Hello接口", description = "返回HelloWorld")
    public AppResponse<String> sayHello(@RequestParam String name) {
        return AppResponse.success(name);
    }
}
